home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 106_01.zip / SYSTEM.C < prev    next >
Text File  |  1993-06-26  |  2KB  |  62 lines

  1. /*    system definitions
  2. **
  3. **    Version 1.2    07-Aug-80
  4. */
  5.  
  6. #define    ASCII_DATE    0x20BF            /* ASCII date */    
  7. #define CODED_DATE    ASCII_DATE+9        /* coded date */
  8. #define    TICCNT        0x201B            /* 2ms counter */
  9. #define    UIVEC        0x201F            /* user vector */
  10.  
  11. /*    BDOS addresses  */
  12.  
  13. #define    CBOOT        0x1800
  14. #define    BIOS        0x2280
  15. #define    BASE        0x4200
  16. #define    WBOOT        BASE
  17. #define    IOBYT        BASE+3
  18. #define BDOS        BASE+5
  19. #define MEM_SIZE        BASE+6
  20.  
  21. #define    FCB        BASE+92
  22. #define    FCBDN        FCB+0        /* disk name */
  23. #define    FCBFN        FCB+1        /* file name */
  24. #define    FCBFT        FCB+9        /* file type */
  25. #define    FCBRL        FCB+12        /* reel number */
  26. #define    FCBST        FCB+13        /* status (date,flags) */
  27. #define    FCBRC        FCB+15        /* record count */
  28. #define    FCBCR        FCB+32        /* next record number */
  29. #define    FCBLN        FCB+33        /* FCB length */
  30.  
  31. #define    BUFF        BASE+128
  32. #define    TPA        BASE+0x100
  33.  
  34. /*    BDOS system calls */
  35.  
  36. #define    SYS_RESET    0
  37. #define    RD_CON        1
  38. #define    WR_CON        2
  39. #define    RD_RDR        3
  40. #define    WR_PUN        4
  41. #define    WR_LST        5
  42. #define    INTER_IO    7
  43. #define    ALTER_IO    8
  44. #define    WR_BUFFER    9
  45. #define    RD_BUFFER    10
  46. #define    CHECK_STATUS    11
  47. #define    RESET_DISK    13
  48. #define    SELECT_DISK    14
  49. #define    OPEN_FILE    15
  50. #define    CLOSE_FILE    16
  51. #define    SEARCH_FIRST    17
  52. #define    SEARCH_NEXT    18
  53. #define    DELETE_FILE    19
  54. #define    RD_RECORD    20
  55. #define    WR_RECORD    21
  56. #define    CREATE_FILE    22
  57. #define    RENAME_FILE    23
  58. #define    INTER_LOGIN    24
  59. #define    INTER_DISK    25
  60. #define    SET_DMA        26
  61. #define    INTER_ALLOC    27
  62.